/*
    Copyright 2011 - Tommi Laukkanen (www.substanceofcode.com)

    This file is part of MeeToDo.

    MeeToDo is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    MeeToDo is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License
    along with MeeToDo. If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick 1.1

Rectangle {
    id: plusButton
    //x: parent.width - width - 10
    //anchors.verticalCenter: parent.verticalCenter
    //y: paper.y + 10
    width: 55
    height: 55
    border.width: 1
    border.color: "#ccc"
    radius: 4
    smooth: false
    //opacity: 0.8
    color: addMouseArea.pressed ? "#ccc" : "#00000000"
    signal clicked()

    Image {
        source: "../pics/plussimple.png"
        anchors.centerIn: parent
        opacity: 0.5
    }

    MouseArea {
        id: addMouseArea
        anchors.fill: parent
        onClicked: {
            plusButton.clicked();
        }

    }
}
